function buildLeftTree(tag,subTag){
	if(tag==1){
		if(subTag==1){
		buildAuthTree();
		}
	}
}

function buildAuthTree(){
	d = new dTree("d");
	d.add(0, -1, "权限管理");
	d.add(1, 0, "用户管理", "javascript: d.o(" + (1) + ");");
	d.add(2, 1, "用户列表", "security/user.action","","maincontent");
	d.add(3, 1, "新增用户", "security/user!input.action","","maincontent");
	d.add(4, 0, "角色管理", "javascript: d.o(" + (4) + ");");
	d.add(5, 4, "角色列表", "security/role!list.action","","maincontent");
	d.add(6, 4, "新增角色", "security/role!input.action","","maincontent");
	d.add(7, 0, "资源管理", "javascript: d.o(" + (7) + ");");
	d.add(8, 7, "资源列表", "security/resc!list.action","","maincontent");
	d.add(9, 7, "新增资源", "security/resc!input.action","","maincontent");
	d.add(10, 0, "权限管理", "javascript: d.o(" + (10) + ");");
	d.add(11, 10, "权限列表", "security/auth!list.action","","maincontent");
	d.add(12, 10, "新增权限", "security/auth!input.action","","maincontent");
	
		d.config.closeSameLevel = true;
	$("#treediv").html(d.toString());
}